Added assertion, to stop it blowing up more obscurely a little later.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 7 Nov 2005 11:30:35 +0000 (12:30 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 7 Nov 2005 11:30:35 +0000 (12:30 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/xenstore/xstransact.py

index 8d3adb177160a21faf1925c7ad057a15e45dc564..eb39368068a227a3dceecf188b3acd94d2140b78 100644 (file)
@@ -11,6 +11,8 @@ from xen.xend.xenstore.xsutil import xshandle
 class xstransact:
 
     def __init__(self, path):
+        assert path is not None
+        
         self.in_transaction = False # Set this temporarily -- if this
                                     # constructor fails, then we need to
                                     # protect __del__.